<?php

namespace JLPay\Models\Openmerch\Change;

use JLPay\Models\BaseRequest;

/**
 * 费率信息变更请求
 */
class RateInfoChangeRequest extends BaseRequest
{
    /**
     * API URL
     */
    public const API_URL = '/open/merch/access/rate-info/modify';

    protected ?string $applyId = null;
    protected ?string $merchNo = null;
    protected ?array $rateInfo = null;

    /**
     * 设置业务申请编号
     *
     * @param string $applyId
     * @return self
     */
    public function setApplyId(string $applyId): self
    {
        $this->applyId = $applyId;
        return $this;
    }

    /**
     * 设置商户号
     *
     * @param string $merchNo
     * @return self
     */
    public function setMerchNo(string $merchNo): self
    {
        $this->merchNo = $merchNo;
        return $this;
    }

    /**
     * 设置费率列表
     *
     * @param array $rateInfo
     * @return self
     */
    public function setRateInfo(array $rateInfo): self
    {
        $this->rateInfo = $rateInfo;
        return $this;
    }

    /**
     * 获取业务申请编号
     *
     * @return string|null
     */
    public function getApplyId(): ?string
    {
        return $this->applyId;
    }

    /**
     * 获取商户号
     *
     * @return string|null
     */
    public function getMerchNo(): ?string
    {
        return $this->merchNo;
    }

    /**
     * 获取费率列表
     *
     * @return array|null
     */
    public function getRateInfo(): ?array
    {
        return $this->rateInfo;
    }
} 